// 获取验证码
export const getCode = () => {
    let codeNumber = '';
   // 随机生成一个6位数的验证码
   for ( let i = 0; i < 6; i++) {
    const num = Math.ceil(Math.random() * 9);
        codeNumber +=  num;
    }
    return {
        codeNumber
    };
}